import request from "../util/request";

//获取聊天记录
export function GetChatRecord (params) {
    return request({
        url : '/chat/index',
        method :'post',
        params : Object.assign(params, {isShowLoading : false})
    })
}

//发送聊天信息
export function SendChatMessage (params){
    return request({
        url : '/chat/create',
        method :'post',
        params
    })
}

//检查是否有新消息
export function CheckHasNewMsg (params){
    return request({
        url : '/chat/check',
        method :'post',
        params
    })
} 